Discover apache log format variables, include the articles, news, trends, analysis and practical advice about apache log format variables on alibabacloud.com
Apche Log Series (1): Access log
Want to know when and what people are browsing the content of the site. See Apache's access log to know. The access log is the standard log for Apache, which explains in detail the contents of the Access log and the
1. Define the log formatA long time ago, there was only one log file format, which was a "public format" and many people were used to this format. The custom log format appeared later, and it seems that the custom log format is more popular, even
Apache Log Configuration
Sometimes we need to customize the format and content of the Apache default log, such as increasing or decreasing the information logged by the log, changing the format of the default log file, and so on. This article
Apache logs do not record Image File Settings
Setenv imag 1Customlog logs/access_log combined Env =! Imag
Apache logs: If you record all access requests, the file will be large. If you use log analysis software, the analysis results may not be
I. Log Analysis
If Apache is installed by default, two log files are generated when the server runs. The two files are access_log and error_log.
When the default installation method is used, these files can be found
I. Apache log type1.apache log is divided into: Access log, error log2. Level of log information
Degree of severity
Grade
Description
1
Emerg
System not available
2
Alert
A
Apache configuration file httpd.conf Chinese detailed## The configuration file based on the NCSA server is written by Rob McCool, Longzi translation## Apache Server master configuration file. Includes directory settings for server directives.# More
Logs/error_logCustomlog Logs/access_log Common--The default is that the above section is modified as follows:Errorlog "|/usr/sbin/rotatelogs/var/log/httpd/10.70.25.143:10002.errorlog.%y%m%d%h 7200 480"Customlog "|/usr/sbin/rotatelogs/var/log/httpd/10
1) Unload the system's own httpd:Rpm-qa|grep httpdRPM-E Httpd-2.2.15-15.el6.centos--nodepsRpm-e Httpd-tools
2) Find the latest download linkFind the latest version of the download link from http://httpd.apache.org/download.cgi, now the most stable
1. Apache logs are recorded by date
In the pache configuration file, findErrorlog logs/error_logCustomlog logs/access_log common
Linux system configuration method:
Change itErrorlog "|/usr/local/Apache/bin/rotatelogs/Home/logs/www/% Y _ % m _ %
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.